// 成品输送上位机线
const chengpinShuSongUrl = "http://10.10.62.249:5151";

// 登录
const loginRouterApi = "/api/auth/createtoken";
// 码垛线空闲反馈
const freeLineApi = "/api/palletizing/putstatus";

// SN码垛结果反馈
const snResultApi = "/api/palletizing/snresult";

// 整托码垛结果反馈
const feedbackresultApi = "/api/palletizing/feedbackresult";

// 成品输送上位机登录字段
const chengpinLoginData = {
  appkey: "jxbwcs",
  appsecret: "jxb123!",
};

// 库内wcs
const wcsUrl = "http://10.100.70.33:18097";
// 码垛完成信号
const wcsSnAllPalletizingApi = "/api/plcManualOperation/startConveyTaskArm";

// 监听是否可以码垛和获取托盘号
const wcsPlcManualOperation = "/api/plcManualOperation/getConveyInfo";

const wcsData = {
  "1A": {
    startDeviceId: "2",
    targetDeviceId: "18",
  },
  "1B": {
    startDeviceId: "3",
    targetDeviceId: "18",
  },
  "2A": {
    startDeviceId: "4",
    targetDeviceId: "18",
  },
  "2B": {
    startDeviceId: "5",
    targetDeviceId: "18",
  },
  "3A": {
    startDeviceId: "6",
    targetDeviceId: "24",
  },
  "3B": {
    startDeviceId: "7",
    targetDeviceId: "24",
  },
  "4A": {
    startDeviceId: "8",
    targetDeviceId: "24",
  },
  "4B": {
    startDeviceId: "9",
    targetDeviceId: "24",
  },
};

module.exports = {
  chengpinShuSongUrl,
  chengpinLoginData,
  loginRouterApi,
  freeLineApi,
  snResultApi,
  feedbackresultApi,
  wcsUrl,
  wcsSnAllPalletizingApi,
  wcsData,
  wcsPlcManualOperation,
};
